package com.xydtech.ecard.ecard.mapper;

import com.xydtech.ecard.ecard.domain.EcardApiAccessRecordList;
import com.xydtech.ecard.ecard.domain.EcardApiVisitRecord;

import java.util.List;
import java.util.Map;

/**
 * 电子名片浏览记录明细Mapper接口
 * 
 * @author Daniel
 * @date 2021-09-14
 */
public interface EcardAccessRecordListMapper 
{
    /**
     * 新增电子名片访问记录
     * @param ecardAccessRecordList
     * @return
     */
    int insertEcardAccessRecordList(EcardApiAccessRecordList ecardAccessRecordList);

    /**
     * 电子名片-电子名片-获取电子名片的访问记录
     * @param userId
     * @return
     */
    List<EcardApiVisitRecord> getEcardAccessRecordList(String userId);

    /**
     * 电子名片-电子名片-获取电子名片访问的总次数
     * @param currentUserId
     * @return
     */
    Integer getEcardAccessRecordTotalCount(String currentUserId);

    /**
     * 获取排行榜
     * @return
     */
    List<String> getVisitCountSortList();
}
